-
Notifications
You must be signed in to change notification settings - Fork 44
Conversation
Had a quick look, this is basically reversing the roles of envs and deployments.
I guess this only applies to Also, just to confirm, if I understand correctly, I guess the commands will change in such a manner right?:
AFTER:
|
They are. Every command except Now you can either create new deployment with |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release/0.3.0 #417 +/- ##
================================================
Coverage ? 87.62%
================================================
Files ? 94
Lines ? 7847
Branches ? 0
================================================
Hits ? 6876
Misses ? 971
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
* fix issues with pandas pylint and flake8 * fix requirements * fix req tests * remove comment * fix catboost req tests Co-authored-by: mike0sv <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
@@ -53,11 +62,12 @@ def ensured_app(self) -> HerokuAppMeta: | |||
return self.app | |||
|
|||
|
|||
class HerokuDeployment(MlemDeployment): | |||
class HerokuDeployment(MlemDeployment[HerokuState, HerokuEnv]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confused how to read this type hint. Why it could be MlemDeployment[Y, Z]
? Could you please explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for mypy and IDE help mostly. MlemDeployment
is Generic
and methods like get_env
will return not arbitrary MlemEnv
, but whatever you provide as second generic parameter (HerokuEnv
in this case).
Co-authored-by: Alexander Guschin <[email protected]>
Co-authored-by: Alexander Guschin <[email protected]>
This is last bits on refactoring deployments. It includes:
mlem deployment run
similar to those in Add -c help WIP #363Some examples of how deployments cli can be used: